package com.liuxl;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.ErrorPageFilter;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;

/**
* @ClassName: SpringbootWebInitializer
* @Description: web容器中进行部署
* @author liuxl
*
*/
public class SpringbootWebInitializer  extends SpringBootServletInitializer{
	@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
    {
        return application.sources(EliteStart.class);
    }
	@Bean
    public ErrorPageFilter errorPageFilter() {
        return new ErrorPageFilter();
    }
 

}
